export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  searchMenuSpan: 6,
  menu: true, // 隐藏操作栏
  addBtn: false,
  editBtn: false,
  addRowBtn: false,
  cellBtn: false,
  cancelBtn: false,
  column: [
    {
      type: 'input',
      label: '状态',
      prop: 'status',
      span: 12,
      value: '0'
    },
    {
      type: 'input',
      label: '批次号',
      prop: 'batchnumber',
      span: 12,
      hide: true
    },
    {
      type: 'input',
      label: '资产分类全编码',
      prop: 'classifiedCode',
      span: 12,
      hide: true
    },
    {
      type: 'input',
      label: '资产分类全称',
      prop: 'classified',
      span: 12,
      hide: true
    },
    {
      type: 'input',
      label: '资产分类名称',
      prop: 'ctiName',
      span: 12,
      width: 200
    },
    {
      type: 'input',
      label: '照片',
      prop: 'picture',
      span: 12,
      hide: true
    },
    {
      type: 'input',
      label: '条形码',
      prop: 'barcode',
      span: 12,
      hide: true
    },
    {
      type: 'input',
      label: '名称',
      prop: 'name',
      span: 12
    },
    {
      type: 'input',
      label: '规格型号',
      prop: 'model',
      span: 12,
      cell: true
    },
    {
      type: 'input',
      label: '计量单位',
      prop: 'unit',
      span: 12,
      cell: true
    },
    {
      type: 'number',
      label: '单价',
      prop: 'price',
      span: 12,
      cell: true,
      slot: true,
      formslot: true,
      precision: 2,
      width: 150,
      rules: [
        {
          required: true,
          message: '请输入单价',
          trigger: 'blur'
        }
      ]
    },
    {
      type: 'number',
      label: '采购数量',
      prop: 'quantity',
      span: 12,
      cell: true,
      slot: true,
      formslot: true,
      width: 150,
      rules: [
        {
          required: true,
          message: '请输入采购数量',
          trigger: 'blur'
        }
      ]
    },
    {
      type: 'number',
      label: '已采购数量',
      prop: 'purchasedQuantity',
      span: 12
    },
    {
      type: 'number',
      label: '已到货数量',
      prop: 'arrivedQuantity',
      span: 12,
      hide: true
    },
    {
      type: 'number',
      label: '已发放数量',
      prop: 'grantQuantity',
      span: 12
    },
    {
      type: 'number',
      label: '预计费用',
      prop: 'amount',
      slot: true,
      formslot: true,
      span: 12,
      width: 100
    },
    {
      type: 'input',
      label: '备注',
      prop: 'remarks',
      span: 12,
      cell: true
    }
  ]
}
